import math
wufangzhen_dic = {
            '0': '200',
            '1': '240',
            '2': '288',
            '3': '346',
            '4': '415',
            '5': '498',
            '6': '597',
            '7': '717',
            '8': '860',
            '9': '1032',
            '10': '1238',
            '11': '1486',
            '12': '1783',
            '13': '2140',
            '14': '2568',
            '15': '3081',
            '16': '3698',
            '17': '4437',
            '18': '5325',
            '19': '6390',
            '20': '7029',
            '21': '7731',
            '22': '8505',
            '23': '9355',
            '24': '10291',
            '25': '11320',
            '26': '12452',
            '27': '13697',
            '28': '15066',
            '29': '16573',
            '30': '18230',
            '31': '20053',
            '32': '22059',
            '33': '24264',
            '34': '26691',
            '35': '29360',
            '36': '32296',
            '37': '35526',
            '38': '39078',
            '39': '42986',
            '40': '47285',
            '41': '52013',
            '42': '57214',
            '43': '62936',
            '44': '69229',
            '45': '76152',
            '46': '83768',
            '47': '92144',
            '48': '101359',
            '49': '111495',
            '50': '122644',
            '51': '134909',
            '52': '148399',
            '53': '163239',
            '54': '179563',
            '55': '197520',
            '56': '217272',
            '57': '238999',
            '58': '262899',
            '59': '289189',
            '60': '303648',
            '61': '318830',
            '62': '334772',
            '63': '351510',
            '64': '369086',
            '65': '387540',
            '66': '406917',
            '67': '427263',
            '68': '448626',
            '69': '471058',
            '70': '494611',
            '71': '519341',
            '72': '545308',
            '73': '572574',
            '74': '601202',
            '75': '631262',
            '76': '662825',
            '77': '695967',
            '78': '730765',
            '79': '767303',
            '80': '782649',
            '81': '798302',
            '82': '814268',
            '83': '830554',
            '84': '847165',
            '85': '864108',
            '86': '881390',
            '87': '899018',
            '88': '916998',
            '89': '935338',
            '90': '954045',
            '91': '973126',
            '92': '992589',
            '93': '1012440',
            '94': '1032689',
            '95': '1053343',
            '96': '1074410',
            '97': '1095898',
            '98': '1117816',
            '99': '1140172',

        }
dic = {
    "huixin":35737.5,
    "huixiao":12506.25,
    "wushuang":34458.75,
    "fangyu":19091.25,
    "pofang":35737.5,# 奉天证道
    # "pofang":15344.2,# 世外蓬莱
    "jiasu":43856.25,
    "xinfa_gongji":1.7998, #心法根骨提供的额外内功攻击
    }
gongji = 21227.00
huixin = 10546.00+12*dic["huixin"]/100
huixiao = 301.00
pofang = 17410.00
huixin_per = math.ceil(10000*huixin/dic["huixin"])/100
huixiao_per = math.ceil(10000*huixiao/dic["huixiao"])/100
print(huixin_per,huixiao_per)
nskillCof = 0.8
nHuiXinPercent = huixin/35737.5 + huixin_per/10000
nHuiXiaoPercent = huixiao/12506.25 + huixiao_per/10000 +1.75
nPoFangPercent = pofang/35737.5
damage = gongji * nskillCof * (nHuiXinPercent * nHuiXiaoPercent + (1-nHuiXinPercent)) * (1+nPoFangPercent)
# damage=gongji*0.8*(huixin/35737.5+huixin_per/10000) * (huixiao/12506.25+(huixiao_per/10000+1.75) +(1+huixin/35737.5+huixin_per/10000))*(1+pofang/35737.5)

for i in wufangzhen_dic.keys():
    if float(wufangzhen_dic[i])>damage:
        print(damage)
        print(int(i)+1,wufangzhen_dic[i])
        break
# print(damage)